﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DHAA.Areas.Administrator.Models.AdminModels>" %>

    <fieldset>
        <legend>Are you sure you want to delete this?</legend>
        <div class="Message Error"><%= ViewData["MessageError"] %></div>
        <div class="Message Success"><%= ViewData["MessageSuccess"] %></div>
        <div class="display-label">AdminID</div>
        <div class="display-field"><%= Html.Encode(Model.AdminID) %></div>
        <div class="cleared"></div>
        <div class="display-label">Username</div>
        <div class="display-field"><%= Html.Encode(Model.Username) %></div>
         <div class="cleared"></div>
       
        
        <div class="display-label">AdminName</div>
        <div class="display-field"><%= Html.Encode(Model.AdminName) %></div>
         <div class="cleared"></div>
     <% using (Ajax.BeginForm("Delete", new {id = Model.AdminID} ,new AjaxOptions { UpdateTargetId = "fancybox-content", LoadingElementId = "loadingIcon", OnBegin = "MvcFormOnBegin", OnSuccess = "MvcFormOnSuccess", OnComplete = "MvcFormOnComplete", OnFailure = "MvcFormOnFailure" }))
       {%>
        <div><br/>
            <input type="submit" value="Delete" />
		    <div id="loadingIcon" ></div> <input type="button" value="Cancel" onclick="$.fancybox.close()"/>
        </div>
    <% } %>
    </fieldset>

    


